<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- Head -->
<head>

	<title>管理员登录</title>

	<!-- Meta-Tags -->
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

		<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
	<!-- //Meta-Tags -->
	<link rel="stylesheet" href="static/css/style.css" type="text/css" media="all">
<script type="text/javascript">
	function check(form) {
		if (form.username.value == '') {
			alert("用户名不能为空");
			form.username.focus();
			return false;
		}
		if (form.password.value == '') {
			alert("密码不能为空");
			form.password.focus();
			return false;
		}
		return true;
	}
</script>
</head>
<!-- //Head -->

<!-- Body -->
<body>

	<h1>管理员登录</h1>
    <div align="center">
	<div class="container">
		<div class="login">
			<h2>登 录</h2>
			<form action="adminLogin" method="post">
				<input type="text" name="username" placeholder="用户名" value="${cookie.username.value }" >
				<input type="password" name="password" placeholder="密码"  value="${cookie.password.value }">
				<br>
				<input type="checkbox" id="brand1" value="true" name="checkbox" checked="checked">
				
				<span><font color="red">记住我</font></span>
				
				
			</ul>
			
			<br/><br/>
				<div id="send-button" align="center">
					<input type="submit" value="登 录" onclick="return check(this.form)">
			</div>
			</form>
			<div class="social-icons">
				
				
			</div>
			<div class="clear"></div>
		</div>

		<div class="clear"></div>

	</div>
    </div>

</body>
<!-- //Body -->

</html>